package com.scu.hotelsystem.service;

import com.scu.hotelsystem.dao.GoodsCateDao;
import com.scu.hotelsystem.pojo.GoodsCate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class GoodsCateServiceImpl implements GoodsCateService {
    @Autowired
    GoodsCateDao goodsCateDao;

    @Override
    public List<GoodsCate> findAll() throws Exception {
        return goodsCateDao.finAll();
    }

    @Override
    public void save(GoodsCate goodsCate) throws Exception {
        goodsCateDao.save(goodsCate);
    }
}
